package com.animal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author animal
 * @since 2022-01-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="AnOrder对象", description="")
public class AnOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单id")
    @TableId(value = "or_id", type = IdType.AUTO)
    private Integer orId;

    @ApiModelProperty(value = "订单种类 1 购买 2 领养")
    private Integer type;

    @ApiModelProperty(value = "购买人id")
    private Integer userId;

    @ApiModelProperty(value = "订单状态 1，未发货 2，已发货 3，已收货")
    private Integer orderStatus;

    @ApiModelProperty(value = "订单评价 1-5 五个等级")
    private Integer assess;

    @ApiModelProperty(value = "订单创建时间")
    private Date orCreatTime;

    @ApiModelProperty(value = "订单修改时间")
    private Date orUpdTime;

    @ApiModelProperty(value = "商品id")
    private Integer prId;

    @ApiModelProperty(value = "动物id")
    private Integer anId;

    @TableField(exist = false)
    private AnUser anUser;

    @TableField(exist = false)
    private AnProduct anProduct;

    @TableField(exist = false)
    private AnAnimal anAnimal;

}
